import { connect } from 'dva';
import styles from './index.less';
import { Button,InputItem,Toast } from 'antd-mobile';
import router from 'umi/router';

function App({originalPwdVerfication,dispatch}) {
    const { text,list } = originalPwdVerfication;

    function successToast() {
        // Toast.fail('初始密码错误', 1);
        Toast.success('密码正确',0.5);
    }

    return (
        <div >
            <div className={styles.normal}>
                <div>
                    <InputItem
                        className={styles.input_style}
                        placeholder="请输入原始密码"
                        clear
                        >
                        
                    </InputItem>
                </div>

                <div className={styles.button_div}>
                    <Button className={styles.button}  onClick={()=>{successToast();
                        setTimeout(() => {
                         router.push('changePwd');
                        }, 1000); }} >下一步</Button>
                </div>
            </div>
        </div>
    );
}
export default connect(({originalPwdVerfication})=>({originalPwdVerfication}))(App);
